<%@ Page Language="C#" MasterPageFile="~/Frame.Master" AutoEventWireup="true" CodeBehind="SearchDiv.aspx.cs" Inherits="BaseSystem._System.SearchDiv" Title="Search Division Page" %>


<%@ Register Src="UserControl/ucTrees.ascx" TagName="ucTrees" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentMain" runat="server">
     <script src="../_System/Script/Common.js" type="text/javascript"></script>
    <script type="text/javascript">
        function SetOpenerValue(id,value)
        {
            window.opener.document.getElementById(id).value = value;
            CloseWin();
        }
        function CloseWin()
        {
            window.opener=null;
            window.open("","_self");
            window.close();
        }     
    </script>
    
    <table border="0" align="center" cellpadding="0" cellspacing="2" style="width: 700px;">
            <tr>
                <td nowrap="nowrap" valign="top">
                </td>
                <td nowrap="nowrap" style="height: 217px" valign="top">
                    <table>
                        <tr>
                            <td valign="top">
                    <asp:Button ID="btnGetValue" runat="server" CssClass="button_bak" Text="<%$Resources:Base,GetValue %>" OnClick="btnGetValue_Click" />
                    <input id="btnClose" onclick="CloseWin();" class="button_bak" type="button" value="<%=Resources.Base.Close %>" />
                                <div id="UcTrees1div"  class="overStyle" style="border: royalblue 1px solid;overflow:auto;background-color:#edf1f8;">
                                    <uc1:ucTrees ID="UcTrees1" runat="server" IsGetParentValue="true"
                    IsShowTreeValue="true" />
                                </div>
                            </td>
                        </tr>
                    </table>
                    
                    </td>
            </tr>
        </table>
        <script type="text/javascript">
//        function adjustSize()
//        {
//            
//            document.getElementById("UcTrees1div").style.height=document.documentElement.clientHeight-40+"px";
//            document.getElementById("UcTrees1div").style.width=document.documentElement.clientWidth-40+"px";
//        }

//        window.onload=function()
//        {
//            adjustSize();
//        }
//        window.onresize=function()
//        {
//            adjustSize();
//        }

        window.onload=function()
        {
            setHeight("UcTrees1div",-40);   
            setWidth("UcTrees1div",-40); 
        }
        window.onresize=function()
        {
            setHeight("UcTrees1div",-40);   
            setWidth("UcTrees1div",-40); 
        }
        </script>
</asp:Content>
